# -*- coding: utf-8 -*-
from django import template
from modulo.schedule.models import Schedule

register = template.Library()

@register.filter(name='day')
def day(value):
    """
    Affiche le nom du jour
    """
    for days in Schedule.CONCERT_DAYS:
        if value == days[0]:
            return days[1]
